import request from "@/request";
import { AxiosResponse } from "axios";
import { ResponseData } from "@/types/api/public";

export const checkRules = {
  username: [
    {
      required: true,
      message: "请输入账号",
      trigger: "change",
    },
  ],
  password: [
    {
      required: true,
      message: "请输入密码",
      trigger: "change",
    },
  ],
  captcha: [
    {
      required: true,
      message: "请输入验证码",
      trigger: "change",
    },
  ],
};

export const getCaptcha = () => {
  return request({
    url: "/image/captcha",
    method: "get",
  });
};
